package com.sskj.trafficcontrol.service.impl;

import com.sskj.trafficcontrol.dao.TcIntegralLogDao;
import com.sskj.trafficcontrol.model.pojo.TcIntegralLog;
import com.sskj.trafficcontrol.service.TcIntegralLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service(value = "tcIntegralLogService")
public class TcIntegralLogServiceImpl implements TcIntegralLogService {

    @Autowired
    private TcIntegralLogDao tcIntegralLogDao;

    @Override
    public void addTcIntegralLog(TcIntegralLog tcIntegralLog){
        tcIntegralLogDao.addTcIntegralLog(tcIntegralLog);
    }

    @Override
    public List<TcIntegralLog> getIntegralLog(String open_id) {
        return tcIntegralLogDao.getIntegralLog(open_id);
    }

}
